package com.yi.apiboss.service;

import com.yi.apiboss.remote.ServiceDriverUserClient;
import com.yi.internalcommon.dto.DriverUser;
import com.yi.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DriverUserService {

    @Autowired
    private ServiceDriverUserClient driverUserClient;
    public ResponseResult addDriverUser(DriverUser driverUser){

        ResponseResult driverUserResponseResult = driverUserClient.addUser(driverUser);
        return driverUserResponseResult;
    }

    public ResponseResult updateDriverUser(DriverUser driverUser){

        ResponseResult driverUserResponseResult = driverUserClient.updateUser(driverUser);
        return driverUserResponseResult;
    }
}
